def gen():
	print('genetaror func!')
	for x in range(5):
		yield x

def gen_send():
	print('genetaror func!')
	for x in range(5):
		recieved=yield x
		print('recieved: '+str(recieved))


g=gen()
print(iter(g) is g)
print(next(g))

gs=gen_send()
print(next(gs))
print(gs.send(58))
print(next(gs))
#next(g)
#print(list(g))

g2=(x for x in range(5))